package com.aso114.project.base;


import android.graphics.pdf.PdfDocument;

/**
 * Created by Administrator on 2016/10/14 0014.
 */

public class BaseBean<T> {


    /**
     * subData：token
     * result : success
     * code : 1000
     * data : {}
     * result :
     * pageInfo:分页
     */

    private int code;
    private String message;
    private T data;
    private Pageinfo pageinfo;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Pageinfo getPageinfo() {
        return pageinfo;
    }

    public void setPageinfo(Pageinfo pageinfo) {
        this.pageinfo = pageinfo;
    }

    public class Pageinfo{
        private String counts;
        private int pages;
        private int page;
        private int pagesize;

        public String getCounts() {
            return counts;
        }

        public void setCounts(String counts) {
            this.counts = counts;
        }

        public int getPages() {
            return pages;
        }

        public void setPages(int pages) {
            this.pages = pages;
        }

        public int getPage() {
            return page;
        }

        public void setPage(int page) {
            this.page = page;
        }

        public int getPagesize() {
            return pagesize;
        }

        public void setPagesize(int pagesize) {
            this.pagesize = pagesize;
        }
    }
}
